module.exports={
    add(data){
        return request({
            url: '/datasource',
            headers: {},
            method: 'post',
            data: data
        });
    },
    edit(data){
        return request({
            url: '/datasource',
            headers: {},
            method: 'put',
            data: data
        });
    },
    remove(data){
        return request({
            url: '/datasource/'+data,
            headers: {},
            method: 'delete'
        });
    },
    test(data){
        return request({
            url: '/datasource/test',
            headers: {},
            method: 'put',
            data: data
        });
    },
    list(data){
        return request({
            url: '/datasource/list',
            headers: {},
            method: 'get',
            params: data
        });
    }
}
